gtk4.git
8 years agoMore documentation additions
Matthias Clasen [Tue, 26 Dec 2017 16:34:18 +0000 (11:34 -0500)]
More documentation additions

8 years agoDrop gratitious use of GdkPoint
Matthias Clasen [Tue, 26 Dec 2017 16:30:37 +0000 (11:30 -0500)]
Drop gratitious use of GdkPoint

This is the only use of this undocumented struct,
and it does not make this code any better. Just drop it.

8 years agoSome GdkMonitor documentation additions
Matthias Clasen [Tue, 26 Dec 2017 16:19:24 +0000 (11:19 -0500)]
Some GdkMonitor documentation additions

Document the ::invalidated signal.

8 years agoRemove leftover API from headers
Matthias Clasen [Tue, 26 Dec 2017 16:01:38 +0000 (11:01 -0500)]
Remove leftover API from headers

gdk_window_mark_paint_from_clip was removed in
bddfd7bb41cebd9b4e8ea418ce4d8e1f11822e81

8 years agoDocument new event getters
Matthias Clasen [Tue, 26 Dec 2017 15:59:38 +0000 (10:59 -0500)]
Document new event getters

New API needs documentation.

8 years agoTry to make the docs build more quiet
Matthias Clasen [Tue, 26 Dec 2017 15:30:50 +0000 (10:30 -0500)]
Try to make the docs build more quiet

Not sure if this really makes a difference.

8 years agogdk: Remove the event structs from the documentation
Matthias Clasen [Tue, 26 Dec 2017 15:22:21 +0000 (10:22 -0500)]
gdk: Remove the event structs from the documentation

No longer public api.

8 years agoDocument gdk_display_get_setting
Matthias Clasen [Tue, 26 Dec 2017 15:21:45 +0000 (10:21 -0500)]
Document gdk_display_get_setting

New api needs documentation.

8 years agoRemove leftover gdk_event_request_motions from headers
Matthias Clasen [Tue, 26 Dec 2017 15:05:09 +0000 (10:05 -0500)]
Remove leftover gdk_event_request_motions from headers

The implementation of this function was removed in
44cb3ccfa15d6f840b34f916d733ea393a1620a2.

8 years agoDrop gsk_renderer_get/set_viewport from the docs
Matthias Clasen [Tue, 26 Dec 2017 14:44:52 +0000 (09:44 -0500)]
Drop gsk_renderer_get/set_viewport from the docs

These no longer exist.

8 years agogdk: Document GdkDisplay::setting-changed
Matthias Clasen [Tue, 26 Dec 2017 14:30:44 +0000 (09:30 -0500)]
gdk: Document GdkDisplay::setting-changed

New api needs documentation.

8 years agoSome migration guide revisions
Matthias Clasen [Tue, 26 Dec 2017 14:30:07 +0000 (09:30 -0500)]
Some migration guide revisions

Add a few things, reword some others.

8 years agodocs: Add new headerbar api
Matthias Clasen [Tue, 26 Dec 2017 14:01:57 +0000 (09:01 -0500)]
docs: Add new headerbar api

Some functions have been renamed here.

8 years agoAdd GtkIconSize back to the docs
Matthias Clasen [Tue, 26 Dec 2017 13:39:29 +0000 (08:39 -0500)]
Add GtkIconSize back to the docs

And document how it works now.

8 years agogdk: Reshuffle docs slightly
Matthias Clasen [Mon, 25 Dec 2017 21:40:47 +0000 (16:40 -0500)]
gdk: Reshuffle docs slightly

Deemphasize GdkPixbuf in the docs.

8 years agodocs: Fix the build of gdk4 documentation
Ting-Wei Lan [Sun, 24 Dec 2017 16:14:05 +0000 (00:14 +0800)]
docs: Fix the build of gdk4 documentation

https://bugzilla.gnome.org/show_bug.cgi?id=791926

8 years agocheck button: Fix inconsistent state
Matthias Clasen [Mon, 25 Dec 2017 16:27:16 +0000 (11:27 -0500)]
check button: Fix inconsistent state

This has been broken since the inconsistent state
was moved here in 2aea8dfee97b.

8 years agogdk/broadway/toarray.pl: Don't hard-code the path of perl
Ting-Wei Lan [Sun, 24 Dec 2017 16:24:04 +0000 (00:24 +0800)]
gdk/broadway/toarray.pl: Don't hard-code the path of perl

https://bugzilla.gnome.org/show_bug.cgi?id=791927

8 years agoFix the docs build
Matthias Clasen [Sat, 23 Dec 2017 03:59:00 +0000 (22:59 -0500)]
Fix the docs build

We no longer have GtkClipboard.

8 years agocss: Document font-variant and subproperties
Matthias Clasen [Sat, 23 Dec 2017 03:56:35 +0000 (22:56 -0500)]
css: Document font-variant and subproperties

Add the CSS font level 3 properties that we support now
to the docs.

8 years agoUpdate annotations for GdkDisplay
Emmanuele Bassi [Thu, 21 Dec 2017 19:13:28 +0000 (19:13 +0000)]
Update annotations for GdkDisplay

GdkDisplay is missing various annotations, and the introspection scanner
is complaining about it.

8 years agoUpdate annotations for GdkEvent API
Emmanuele Bassi [Thu, 21 Dec 2017 19:07:02 +0000 (19:07 +0000)]
Update annotations for GdkEvent API

The GdkEvent API is missing some gtk-doc stanzas, as well as some
introspection annotations.

8 years agodocs: Add missing signal parameter
Emmanuele Bassi [Thu, 21 Dec 2017 19:00:28 +0000 (19:00 +0000)]
docs: Add missing signal parameter

The `flags` parameter is missing, and the introspection scanner is
complaining about it.

8 years agobuild: Ensure we introspect the print operation sources
Emmanuele Bassi [Thu, 21 Dec 2017 18:57:25 +0000 (18:57 +0000)]
build: Ensure we introspect the print operation sources

The documentation and annotations for some of the print API is defined
in platform-specific source files, so we need to ensure we're passing
those files to the introspection scanner in order to avoid warnings, and
to get the appropriate introspected API.

8 years agoAnnotate gdk_x11_display_get_screen()
Emmanuele Bassi [Thu, 21 Dec 2017 18:49:25 +0000 (18:49 +0000)]
Annotate gdk_x11_display_get_screen()

We're missing the gtk-doc stanza, as well as the transfer annotation for
the returned pointer.

8 years agoRemove unnecessary introspection annotation
Emmanuele Bassi [Thu, 21 Dec 2017 18:46:08 +0000 (18:46 +0000)]
Remove unnecessary introspection annotation

Transfer annotations do not apply to integral types.

8 years agobroadway: Use correct type in assignment
Emmanuele Bassi [Thu, 21 Dec 2017 18:42:26 +0000 (18:42 +0000)]
broadway: Use correct type in assignment

The new type propagation for g_object_ref() is raising a compiler
warning for an assignment with a different type.

8 years agowidgetbowl: Add blurred box shadow demo
Timm Bäder [Thu, 21 Dec 2017 17:33:41 +0000 (18:33 +0100)]
widgetbowl: Add blurred box shadow demo

8 years agogl renderer: try doing outset box shadows
Timm Bäder [Thu, 21 Dec 2017 17:09:32 +0000 (18:09 +0100)]
gl renderer: try doing outset box shadows

Still fall back in cases we can't handle that way.

8 years agotests: Add outset shadow drawing test
Timm Bäder [Thu, 21 Dec 2017 16:57:16 +0000 (17:57 +0100)]
tests: Add outset shadow drawing test

8 years agogl renderer: Remove unused vertex shader
Timm Bäder [Tue, 19 Dec 2017 21:35:55 +0000 (22:35 +0100)]
gl renderer: Remove unused vertex shader

8 years agogl renderer: Don't crash if the first op is an opacity one
Timm Bäder [Tue, 19 Dec 2017 15:00:43 +0000 (16:00 +0100)]
gl renderer: Don't crash if the first op is an opacity one

8 years agogl renderer: Force cross-fade nodes offscreen
Timm Bäder [Tue, 19 Dec 2017 11:45:32 +0000 (12:45 +0100)]
gl renderer: Force cross-fade nodes offscreen

8 years agogl renderer: Use one function per op type to apply data
Timm Bäder [Sat, 16 Dec 2017 09:02:03 +0000 (10:02 +0100)]
gl renderer: Use one function per op type to apply data

8 years agogl renderer: Don't leak gl resources
Timm Bäder [Sat, 16 Dec 2017 01:37:03 +0000 (02:37 +0100)]
gl renderer: Don't leak gl resources

8 years agoshowrendernode: Show at least the root node bounds
Timm Bäder [Mon, 11 Dec 2017 09:02:13 +0000 (10:02 +0100)]
showrendernode: Show at least the root node bounds

8 years agogl renderer: Fix indentation mishap
Timm Bäder [Mon, 11 Dec 2017 07:22:54 +0000 (08:22 +0100)]
gl renderer: Fix indentation mishap

8 years agogl renderer: Implement cross fade nodes
Timm Bäder [Mon, 11 Dec 2017 07:22:28 +0000 (08:22 +0100)]
gl renderer: Implement cross fade nodes

8 years agogl renderer: Fix linear gradient shader color calculation
Timm Bäder [Sun, 10 Dec 2017 21:27:21 +0000 (22:27 +0100)]
gl renderer: Fix linear gradient shader color calculation

This fixes both the wrong headerbar color and the broken border color in
of the circular button in the widget-factory.

8 years agogl renderer: Only take glyph texture alpha into account
Timm Bäder [Sat, 9 Dec 2017 17:31:28 +0000 (18:31 +0100)]
gl renderer: Only take glyph texture alpha into account

This way, we can use the very same coloring program to draw text shadows
of fonts with colored glyphs.

8 years agogl renderer: Fix shadow nodes if the child is a container
Timm Bäder [Sat, 9 Dec 2017 17:26:29 +0000 (18:26 +0100)]
gl renderer: Fix shadow nodes if the child is a container

8 years agogl renderer: Move declarations to the beginning of the block
Timm Bäder [Sat, 9 Dec 2017 15:21:19 +0000 (16:21 +0100)]
gl renderer: Move declarations to the beginning of the block

8 years agogl renderer: Fix use of uninitialized values
Timm Bäder [Sat, 9 Dec 2017 13:32:24 +0000 (14:32 +0100)]
gl renderer: Fix use of uninitialized values

8 years agogl renderer: Ensure texture sizes arent 0
Timm Bäder [Sat, 9 Dec 2017 13:31:10 +0000 (14:31 +0100)]
gl renderer: Ensure texture sizes arent 0

We already ceil() the given float texture sizes here, so if they are
valid, the result should definitely be > 0. Textures with size 0 can't
be properly used, especially not as render targets, where they will
trigger an assertion failure later in a glCheckFramebuffer call.

8 years agogl renderer: Fix inset and outset shadows in hidpi
Timm Bäder [Sat, 9 Dec 2017 08:41:52 +0000 (09:41 +0100)]
gl renderer: Fix inset and outset shadows in hidpi

8 years agogl renderer: Fix cairo node surface size in hidpi
Timm Bäder [Sat, 9 Dec 2017 08:25:47 +0000 (09:25 +0100)]
gl renderer: Fix cairo node surface size in hidpi

8 years agogl renderer: Fix rounded clips in hidpi
Timm Bäder [Sat, 9 Dec 2017 07:59:51 +0000 (08:59 +0100)]
gl renderer: Fix rounded clips in hidpi

8 years agogl renderer: Handle borders in hidpi better
Timm Bäder [Sat, 9 Dec 2017 07:57:13 +0000 (08:57 +0100)]
gl renderer: Handle borders in hidpi better

8 years agogl renderer: Default to 0px clip and border radius
Timm Bäder [Fri, 8 Dec 2017 21:19:52 +0000 (22:19 +0100)]
gl renderer: Default to 0px clip and border radius

Finally fix the division by 0 in the clip code.

8 years agogl renderer: Ignore render ops before we have a valid program
Timm Bäder [Fri, 8 Dec 2017 19:43:47 +0000 (20:43 +0100)]
gl renderer: Ignore render ops before we have a valid program

8 years agogl renderer: Try to fix border rendering
Timm Bäder [Fri, 8 Dec 2017 16:01:16 +0000 (17:01 +0100)]
gl renderer: Try to fix border rendering

8 years agogl renderer: Use one function per node-type
Timm Bäder [Fri, 8 Dec 2017 12:12:43 +0000 (13:12 +0100)]
gl renderer: Use one function per node-type

So a profiler can actually tell me what's slow and not just point at
_add_render_ops in all cases.

8 years agogl renderer: Don't render opacity nodes offscreen
Timm Bäder [Thu, 7 Dec 2017 16:30:02 +0000 (17:30 +0100)]
gl renderer: Don't render opacity nodes offscreen

We already drag a u_alpha uniform around in every shader, so use that
one.

8 years agotests: Add border drawing test
Timm Bäder [Wed, 6 Dec 2017 18:22:24 +0000 (19:22 +0100)]
tests: Add border drawing test

8 years agogl renderer: Fix shadow shader
Timm Bäder [Wed, 6 Dec 2017 16:24:58 +0000 (17:24 +0100)]
gl renderer: Fix shadow shader

We need to take the alpha of the shadow color into account as well.

8 years agogl renderer: Ignore shadow color matrix nodes...
Timm Bäder [Wed, 6 Dec 2017 15:45:43 +0000 (16:45 +0100)]
gl renderer: Ignore shadow color matrix nodes...

... if the color matrix nodes don't touch the child alpha.

8 years agogl renderer: Add a helper function
Timm Bäder [Wed, 6 Dec 2017 15:07:18 +0000 (16:07 +0100)]
gl renderer: Add a helper function

We'll use this for the common case of a color matrix node inside a
shadow node.

8 years agogl renderer: Don't zero initialize render ops GArray
Timm Bäder [Tue, 5 Dec 2017 17:05:12 +0000 (18:05 +0100)]
gl renderer: Don't zero initialize render ops GArray

8 years agogl renderer: Avoid crashing tooltips
Timm Bäder [Tue, 5 Dec 2017 16:49:25 +0000 (17:49 +0100)]
gl renderer: Avoid crashing tooltips

8 years agogl renderer: Sort border sides by color
Timm Bäder [Tue, 5 Dec 2017 12:46:29 +0000 (13:46 +0100)]
gl renderer: Sort border sides by color

8 years agogl renderer: Keep track of border program state
Timm Bäder [Tue, 5 Dec 2017 07:38:42 +0000 (08:38 +0100)]
gl renderer: Keep track of border program state

8 years agogl renderer: Avoid using a new modelview for shadow nodes
Timm Bäder [Tue, 5 Dec 2017 07:01:10 +0000 (08:01 +0100)]
gl renderer: Avoid using a new modelview for shadow nodes

We can just move the vertex data directly.

8 years agogl renderer: Default to GL_LINEAR scaling filters
Timm Bäder [Sun, 3 Dec 2017 21:14:33 +0000 (22:14 +0100)]
gl renderer: Default to GL_LINEAR scaling filters

8 years agogl renderer: Remove superfluous modelview matrix changes
Timm Bäder [Sun, 3 Dec 2017 19:16:01 +0000 (20:16 +0100)]
gl renderer: Remove superfluous modelview matrix changes

8 years agogl renderer: Remove unused struct member
Timm Bäder [Sun, 3 Dec 2017 18:47:20 +0000 (19:47 +0100)]
gl renderer: Remove unused struct member

8 years agogl renderer: Keep track of color matrix op state
Timm Bäder [Sun, 3 Dec 2017 18:15:33 +0000 (19:15 +0100)]
gl renderer: Keep track of color matrix op state

8 years agogl renderer: Avoid consecutive opacity ops
Timm Bäder [Sun, 3 Dec 2017 15:58:01 +0000 (16:58 +0100)]
gl renderer: Avoid consecutive opacity ops

8 years agogl renderer: Define debug structs inline
Timm Bäder [Sun, 3 Dec 2017 15:54:34 +0000 (16:54 +0100)]
gl renderer: Define debug structs inline

8 years agogl renderer: Add more detailed render op output
Timm Bäder [Sun, 3 Dec 2017 08:04:07 +0000 (09:04 +0100)]
gl renderer: Add more detailed render op output

8 years agogl renderer: Only draw blurred shadow nodes once
Timm Bäder [Sat, 2 Dec 2017 10:17:46 +0000 (11:17 +0100)]
gl renderer: Only draw blurred shadow nodes once

8 years agogl renderer: Remove consecutive clip ops
Timm Bäder [Sat, 2 Dec 2017 10:02:31 +0000 (11:02 +0100)]
gl renderer: Remove consecutive clip ops

8 years agogl renderer: Rename a macro
Timm Bäder [Fri, 1 Dec 2017 12:56:56 +0000 (13:56 +0100)]
gl renderer: Rename a macro

8 years agogl renderer: Fix debugging output
Timm Bäder [Fri, 1 Dec 2017 11:29:27 +0000 (12:29 +0100)]
gl renderer: Fix debugging output

8 years agogl renderer: Implement simple border nodes
Timm Bäder [Fri, 1 Dec 2017 10:55:10 +0000 (11:55 +0100)]
gl renderer: Implement simple border nodes

8 years agogl renderer: Don't render unblurred text shadows to a texture
Timm Bäder [Fri, 1 Dec 2017 10:02:26 +0000 (11:02 +0100)]
gl renderer: Don't render unblurred text shadows to a texture

We can do the same thing by simply drawing the text in the given shadow
color.

8 years agogl renderer: Split out text rendering function
Timm Bäder [Fri, 1 Dec 2017 09:47:13 +0000 (10:47 +0100)]
gl renderer: Split out text rendering function

We'll use that for text shadow nodes

8 years agogl renderer: Implement simple shadow nodes
Timm Bäder [Fri, 1 Dec 2017 09:27:31 +0000 (10:27 +0100)]
gl renderer: Implement simple shadow nodes

8 years agogl renderer: Split out a utility function
Timm Bäder [Fri, 1 Dec 2017 08:58:58 +0000 (09:58 +0100)]
gl renderer: Split out a utility function

8 years agogl renderer: Fix inset shadow offset calculation
Timm Bäder [Fri, 1 Dec 2017 07:32:00 +0000 (08:32 +0100)]
gl renderer: Fix inset shadow offset calculation

8 years agogl renderer: Implement unblurred outset shadows
Timm Bäder [Fri, 1 Dec 2017 07:30:11 +0000 (08:30 +0100)]
gl renderer: Implement unblurred outset shadows

8 years agogl renderer: Rework program creation
Timm Bäder [Thu, 30 Nov 2017 17:47:55 +0000 (18:47 +0100)]
gl renderer: Rework program creation

Make sure all uniform names have to match between the shader names and
the _location integers we save in every Program struct.

8 years agogl renderer: Implement unblurred inset shadows
Timm Bäder [Thu, 30 Nov 2017 15:48:03 +0000 (16:48 +0100)]
gl renderer: Implement unblurred inset shadows

8 years agogl renderer: Implement blur nodes
Timm Bäder [Sat, 25 Nov 2017 07:56:50 +0000 (08:56 +0100)]
gl renderer: Implement blur nodes

8 years agogl renderer: Remove some unused members
Timm Bäder [Sat, 25 Nov 2017 06:51:00 +0000 (07:51 +0100)]
gl renderer: Remove some unused members

8 years agogl renderer: Keep track of current program color value
Timm Bäder [Fri, 24 Nov 2017 12:18:45 +0000 (13:18 +0100)]
gl renderer: Keep track of current program color value

8 years agogl renderer: Don't draw texture nodes to a framebuffer
Timm Bäder [Fri, 24 Nov 2017 09:43:17 +0000 (10:43 +0100)]
gl renderer: Don't draw texture nodes to a framebuffer

We don't need to create a texture from a texture node. We can simply use
its texture instead and draw it however we want.

8 years agogl renderer: Implement color matrix nodes again
Timm Bäder [Fri, 24 Nov 2017 09:32:08 +0000 (10:32 +0100)]
gl renderer: Implement color matrix nodes again

8 years agogl render ops: Rename a member
Timm Bäder [Fri, 24 Nov 2017 09:24:49 +0000 (10:24 +0100)]
gl render ops: Rename a member

8 years agogl renderer: Factor out a helper function for offscreen drawing
Timm Bäder [Fri, 24 Nov 2017 09:18:51 +0000 (10:18 +0100)]
gl renderer: Factor out a helper function for offscreen drawing

8 years agogl ops: Remove dead code
Timm Bäder [Thu, 23 Nov 2017 19:01:15 +0000 (20:01 +0100)]
gl ops: Remove dead code

This is already checked further up in that function

8 years agogl renderer: Optimize text drawing
Timm Bäder [Thu, 23 Nov 2017 18:49:41 +0000 (19:49 +0100)]
gl renderer: Optimize text drawing

Text nodes will almost always end up using the exact same texture and
the same program. So, in that case we can simply add vertex data for all
the characters we need to draw and use just one draw call.

8 years agogl renderer: Remove unused VAO
Timm Bäder [Thu, 23 Nov 2017 10:30:05 +0000 (11:30 +0100)]
gl renderer: Remove unused VAO

8 years agogl renderer: Stop collecting VAOs in clear_tree
Timm Bäder [Thu, 23 Nov 2017 09:28:30 +0000 (10:28 +0100)]
gl renderer: Stop collecting VAOs in clear_tree

We don't use that part of the gl driver anymore.

8 years agogl renderer: Only check for color glyphs once per text node
Timm Bäder [Thu, 23 Nov 2017 09:10:43 +0000 (10:10 +0100)]
gl renderer: Only check for color glyphs once per text node

It does not depend on the glyph, so no need to do it once for every
glyph.

8 years agogl renderer: Implement cairo nodes again
Timm Bäder [Thu, 23 Nov 2017 09:02:58 +0000 (10:02 +0100)]
gl renderer: Implement cairo nodes again

8 years agogl renderer: Move render ops into separate file
Timm Bäder [Wed, 22 Nov 2017 20:02:50 +0000 (21:02 +0100)]
gl renderer: Move render ops into separate file

8 years agogsk: Move all gskgl* files into gl/
Timm Bäder [Wed, 22 Nov 2017 19:13:46 +0000 (20:13 +0100)]
gsk: Move all gskgl* files into gl/

8 years agogl renderer: Rework once more
Timm Bäder [Wed, 22 Nov 2017 10:32:23 +0000 (11:32 +0100)]
gl renderer: Rework once more

Last time, I swear.

8 years agogl renderer: Don't initialize modelview matrix twice
Timm Bäder [Mon, 20 Nov 2017 14:08:04 +0000 (15:08 +0100)]
gl renderer: Don't initialize modelview matrix twice

8 years agogl renderer: Group render node types by render item creation
Timm Bäder [Mon, 20 Nov 2017 13:30:46 +0000 (14:30 +0100)]
gl renderer: Group render node types by render item creation